/**
 * Copyright &copy; 2012-2017 <a href="http://minglisoft.cn">HongHu</a> All rights reserved.
 */
package com.honghu.cloud.feign;

import java.util.List;
import java.util.Map;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.honghu.cloud.dto.InventoryDto;

/**
 * 库存feign调用类
 * @author Administrator
 *
 */
@FeignClient(name="honghu-goods-service" ,path="inventory")
public interface InventoryFeignClient{

	/**
	 * 查询库存
	 * @param congelationDto
	 * @return
	 */
	@RequestMapping(value = "/apiForFeign/queryPageList", method = RequestMethod.POST)
	public List<InventoryDto> queryPageList(@RequestParam("params") Map<String, Object> params);
	
	/**
	 * 根据店铺仓库查询存库商品id
	 * @param params
	 * @return
	 */
	@RequestMapping(value = "/apiForFeign/getGoodsId", method = RequestMethod.POST)
	public List<Map<String, Object>> getGoodsId(@RequestParam("params") Map<String, Object> params);

}